package ooday02;
/** 鸡类 */
public class Chick extends Animal {
    String eat;
    Chick(String name,int age,String color,String eat){
        super(name,age,color);//调用父类结构方法
        this.eat = eat;
    }
    void eat(){//重写吃饭
        System.out.println(color+"颜色的"+name+age+"岁了,他在吃"+eat+"...");
    }
    void layEgg(){
        System.out.println(name+"在下蛋。。。");
    }
}
